<?php if (count($versions)): ?>
<ul>
<?php foreach ($versions as $id => $value): ?>
	
	<?php
	// load the title for this entry and cache it
	if (isset($WIKI_USERS[$id]))
		$w_user = $WIKI_USERS[$id];
	else
	{
		$query 	  		 = $this->db->query('select field1_value from contents where id = ? limit 1', $id);
		$w_user   		 = $query->first_row();
		$WIKI_USERS[$id] = $w_user->field1_value;
		$w_user 		 = $WIKI_USERS[$id];
	}
	?>
	
	<li class="embed_item"><h2><a href="/content/<?php echo $id; ?>"><?php echo $w_user; ?></a></h2>
		<div class="wiki_text">
			<?php echo html_entity_decode($value); ?>
		</div>
	</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>

<?php echo wiki_text_css(); ?>